package demo.bit.list;

public class Main {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.insert(1,1);
        myArrayList.insert(2,2);
        myArrayList.insert(3,3);
        myArrayList.insert(4,4);
        myArrayList.printList();
        System.out.println(myArrayList.contains(3));
        System.out.println(myArrayList.getPos(2));
        System.out.println(myArrayList.getPos(34));
        myArrayList.setPos(0,99);
        myArrayList.remove(3);
        myArrayList.clear();
        myArrayList.printList();

    }
}
